'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller, io } = app;
  router.get('/', controller.home.index);
  router.get('/m', controller.mobile.index);

  router.post('/data', controller.home.data);

  io.of('/').route('pick', io.controller.home.exchange);
};
